#include <iostream>
#include <json/json.h>

int main(){
    Json::Value root;
    root["name"] = "Bits";
    root["age"] = 18;

    Json::StreamWriterBuilder sw;
    std::string str = Json::writeString(sw, root);

    std::cout << "root: \r\n" << str << std::endl;
    return 0;
}